<?php 
defined('RUN_KATANA') or die('Restricted access'); 
if($sitemap->CurrentPage->StaticHtml)
{
	echo '<div class="static-content">'.$sitemap->CurrentPage->StaticHtml.'</div>';
	echo '<br />';
}
$sitemap->CurrentPage->getSubItems();
if(count($sitemap->CurrentPage->getSubItems()) > 0)
{
	foreach($sitemap->CurrentPage->getSubItems() as $page)
	{
		if(is_file($sitemap->getViewPath().get_class($page).'Item.php'))
		{ require($sitemap->getViewPath().get_class($page).'Item.php'); }
		else
		{
			if(is_file($sitemap->getViewPath().'PageItem.php'))
			{ require($sitemap->getViewPath().'PageItem.php'); }
		}
		echo '<div class="clear"></div><hr />';
		/*
		$katana->TrackViews['am_ads'][$ad->getId()]['table'] = 'am_ads';
		$katana->TrackViews['am_ads'][$ad->getId()]['where'] = 'id='.$ad->getId();
		$katana->TrackViews['am_ads'][$ad->getId()]['set'] = 'ViewsList=ViewsList+1';
		*/
	}
}
?>